import axios from 'axios'

export interface Take {
	current: number

	pageSize: number
}

/**
 * 查询我的待办
 */
export function getMyTaskList(params: Take) {
	return axios.get('/task/my-tasks', { params })
}

/**
 * 完成任务
 */
export function completeTask(id: string) {
	return axios.post('/task/complete', { id })
}